#ifndef     __APP_INFO_H
#define     __APP_INFO_H


#include "./store.h"

namespace cfg {

struct AppInfo {

    uint16_t flow_count_1000L = 1000;
    uint16_t steam_heat_temp = 160;
    uint16_t steam_heat_kpa = 400;
    uint32_t steam_heat_timeout = 30 * 60 * 1000;
    uint16_t water_heat_temp = 80;
    uint32_t water_heat_timeout = 30 * 60 * 1000;
    uint32_t draw_timeout = 10 * 60 * 1000;

    void reset() {
        flow_count_1000L = 1000;
        steam_heat_temp = 160;
        steam_heat_kpa = 400;
        steam_heat_timeout = 30 * 60 * 1000;
        water_heat_temp = 80;
        water_heat_timeout = 30 * 60 * 1000;
        draw_timeout = 10 * 60 * 1000;
    }

};

extern Store<AppInfo, driver::flash::DATA_ADDR> appInfo;

} // namespace cfg





#endif
